print('Calculate the sum of all the even numbers in [m, n].')

m = int(input('Input m: '))
n = int(input('Input n: '))

even_numbers_sum = 0

if m % 2 == 1:
    m = m + 1

for i in range(m, n + 1, 2):
    even_numbers_sum = even_numbers_sum + i

print('The sum is:', even_numbers_sum)
